package test;

import test.inherit.Person;
import test.inherit.Student;

public class Demo2 {
    public static void main(String[] args) {

        Person p = new Person();
        System.out.println(p.getName());

        Student student =new Student(82,"计科",99);
        System.out.println(student.getGrades());
        student.setGrades(98);

        System.out.println(student.getGrades());
        System.out.println(student);


    }
}
